<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (Mac OS): Source/CPTTextStyle.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (Mac OS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_c_p_t_text_style_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Source/CPTTextStyle.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_c_p_t_text_style_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#import &lt;Foundation/Foundation.h&gt;</span>
<a name="l00002"></a>00002 <span class="preprocessor">#import &lt;QuartzCore/QuartzCore.h&gt;</span>
<a name="l00003"></a>00003 
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_color.html" title="An immutable color.">CPTColor</a>;
<a name="l00007"></a>00007 
<a name="l00011"></a><a class="code" href="_c_p_t_text_style_8h.html#a0f9e5e7dcd5a81df19155ee7f9d0bd03">00011</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>  <a class="code" href="_c_p_t_text_style_8h.html#a0f9e5e7dcd5a81df19155ee7f9d0bd03" title="Enumeration of paragraph alignments.">_CPTTextAlignment</a> {
<a name="l00012"></a><a class="code" href="_c_p_t_text_style_8h.html#a0f9e5e7dcd5a81df19155ee7f9d0bd03a058e0ba57754aa691a0be22e464fab95">00012</a>     <a class="code" href="_c_p_t_text_style_8h.html#a0f9e5e7dcd5a81df19155ee7f9d0bd03a058e0ba57754aa691a0be22e464fab95" title="Left alignment.">CPTTextAlignmentLeft</a>,   
<a name="l00013"></a><a class="code" href="_c_p_t_text_style_8h.html#a0f9e5e7dcd5a81df19155ee7f9d0bd03aa23e7da29ea5917a7d23abde9198acd1">00013</a>     <a class="code" href="_c_p_t_text_style_8h.html#a0f9e5e7dcd5a81df19155ee7f9d0bd03aa23e7da29ea5917a7d23abde9198acd1" title="Center alignment.">CPTTextAlignmentCenter</a>, 
<a name="l00014"></a><a class="code" href="_c_p_t_text_style_8h.html#a0f9e5e7dcd5a81df19155ee7f9d0bd03ac04cbc48b6dd21897678451ece032298">00014</a>     <a class="code" href="_c_p_t_text_style_8h.html#a0f9e5e7dcd5a81df19155ee7f9d0bd03ac04cbc48b6dd21897678451ece032298" title="Right alignment.">CPTTextAlignmentRight</a>   
<a name="l00015"></a>00015 }
<a name="l00016"></a>00016 <a class="code" href="_c_p_t_text_style_8h.html#a10ee342a87bc226dfe0c0c7892201c31" title="Enumeration of paragraph alignments.">CPTTextAlignment</a>;
<a name="l00017"></a>00017 
<a name="l00018"></a><a class="code" href="interface_c_p_t_text_style.html">00018</a> <span class="keyword">@interface </span><a class="code" href="interface_c_p_t_text_style.html" title="Immutable wrapper for various text style properties.">CPTTextStyle</a> : <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html">NSObject</a>&lt;<a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html">NSCoding</a>, <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSCopying_Protocol/Reference/Reference.html">NSCopying</a>, <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSMutableCopying_Protocol/Reference/Reference.html">NSMutableCopying</a>&gt; {
<a name="l00019"></a>00019     <span class="keyword">@protected</span>
<a name="l00020"></a><a class="code" href="interface_c_p_t_text_style.html#a1f07f59cd389ee9949d4eaebe958c93d">00020</a>     <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *<a class="code" href="interface_c_p_t_text_style.html#a1f07f59cd389ee9949d4eaebe958c93d" title="The font name.">fontName</a>;
<a name="l00021"></a><a class="code" href="interface_c_p_t_text_style.html#a0872790294f130e35db0ffd5f120b257">00021</a>     CGFloat <a class="code" href="interface_c_p_t_text_style.html#a0872790294f130e35db0ffd5f120b257" title="The font size.">fontSize</a>;
<a name="l00022"></a><a class="code" href="interface_c_p_t_text_style.html#a837db7bc43385d432de548b4301136b6">00022</a>     <a class="code" href="interface_c_p_t_color.html" title="An immutable color.">CPTColor</a> *<a class="code" href="interface_c_p_t_text_style.html#a837db7bc43385d432de548b4301136b6" title="The current text color.">color</a>;
<a name="l00023"></a><a class="code" href="interface_c_p_t_text_style.html#a3e23c88e859acc44c8dce76c2d7f0c4d">00023</a>     <a class="code" href="_c_p_t_text_style_8h.html#a10ee342a87bc226dfe0c0c7892201c31" title="Enumeration of paragraph alignments.">CPTTextAlignment</a> <a class="code" href="interface_c_p_t_text_style.html#a3e23c88e859acc44c8dce76c2d7f0c4d" title="The paragraph alignment for multi-line text.">textAlignment</a>;
<a name="l00024"></a>00024 }
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="keyword">@property</span> (readonly, copy, nonatomic) <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *fontName;
<a name="l00027"></a>00027 <span class="keyword">@property</span> (readonly, assign, nonatomic) CGFloat fontSize;
<a name="l00028"></a>00028 <span class="keyword">@property</span> (readonly, copy, nonatomic) <a class="code" href="interface_c_p_t_color.html" title="An immutable color.">CPTColor</a> *color;
<a name="l00029"></a>00029 <span class="keyword">@property</span> (readonly, assign, nonatomic) <a class="code" href="_c_p_t_text_style_8h.html#a10ee342a87bc226dfe0c0c7892201c31" title="Enumeration of paragraph alignments.">CPTTextAlignment</a> textAlignment;
<a name="l00030"></a>00030 
<a name="l00033"></a>00033 +(<a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>)textStyle;
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="keyword">@end</span>
<a name="l00037"></a>00037 
<a name="l00041"></a>00041 <span class="keyword">@interface </span><a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a>(CPTTextStyleExtensions)
<a name="l00042"></a>00042 
<a name="l00045"></a>00045 -(<a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGSize.html">CGSize</a>)sizeWithTextStyle:(<a class="code" href="interface_c_p_t_text_style.html" title="Immutable wrapper for various text style properties.">CPTTextStyle</a> *)style;
<a name="l00047"></a>00047 
<a name="l00050"></a>00050 -(void)drawInRect:(<a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGRect.html">CGRect</a>)rect withTextStyle:(<a class="code" href="interface_c_p_t_text_style.html" title="Immutable wrapper for various text style properties.">CPTTextStyle</a> *)style inContext:(<a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>)context;
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="keyword">@end</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_c_p_t_text_style_8h.html">CPTTextStyle.h</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
